bitkeeper revision 1.1612 (429c6dd5DZf10_GWDT3DTiTom7Mb1g)
authorcl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Tue, 31 May 2005 13:59:49 +0000 (13:59 +0000)
committercl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Tue, 31 May 2005 13:59:49 +0000 (13:59 +0000)
XendDomainInfo.py:
  cpu == 0 is the 1st cpu, allow pinning a domain to it.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
tools/python/xen/xend/XendDomainInfo.py

index ac0d4b63574766249ec65e236cfca1e8166e6d45..8e118da4e882168aaea1206b0e5742e23de318e3 100644 (file)
@@ -555,7 +555,7 @@ class XendDomainInfo:
         if self.memory is None:
             raise VmError('missing memory size')
         cpu = sxp.child_value(config, 'cpu')
-        if self.recreate and self.dom and cpu is not None and cpu > 0:
+        if self.recreate and self.dom and cpu is not None and cpu >= 0:
             xc.domain_pincpu(self.dom, 0, 1<<int(cpu))
         try:
             image = sxp.child_value(self.config, 'image')